the scrollbar passed in better be either priv->hscrollbar or
priv->vscrollbar. Ensure that by using a simple else instead of an
else-if and a g_assert.
child_allocation.width = content_allocation.width;
child_allocation.height = sb_height;
}
- else if (scrollbar == priv->vscrollbar)
+ else
{
+ g_assert (scrollbar == priv->vscrollbar);
+
if ((_gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL &&
(priv->window_placement == GTK_CORNER_TOP_RIGHT ||
priv->window_placement == GTK_CORNER_BOTTOM_RIGHT)) ||